package service.impl;

import entity.Shoptype;
import mapper.ShoptypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import service.Shoptypeservice;

import javax.annotation.Resource;
import java.util.List;

@Component
public class Shoptypeserviceimpl implements Shoptypeservice {
    @Resource
    ShoptypeMapper shoptypeMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {

        return shoptypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Shoptype record) {
        return shoptypeMapper.insert(record);
    }

    @Override
    public int insertSelective(Shoptype record) {
        return shoptypeMapper.insertSelective(record);
    }

    @Override
    public Shoptype selectByPrimaryKey(Integer id) {
        return shoptypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Shoptype record) {
        return shoptypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Shoptype record) {
        return shoptypeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Shoptype> listarray(Integer id) {
        return shoptypeMapper.listarray(id);
    }
}
